package com.corner.system.service;


import com.corner.common.core.domain.entity.SysUser;
import com.corner.system.domain.GzhUserinfo;
import me.chanjar.weixin.mp.bean.WxMpXmlMessage;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface WxgzhService {

    public String getAccessToken();

    public Map<String,String> getUrlAccessToken(String code,String username) ;

    public String getJsapiTicket();

    public String getSignature(String timestamp,String noncestr, String url);

    public Boolean wxSignatureCheck(String signature, String timestamp, String nonce, String echostr);

    public String getUserMessage(HttpServletRequest request, HttpServletResponse response);

    public String receiveText(WxMpXmlMessage message,String content);

    public void publicMsg(Map data);

    public void checkUserIfSubscribe(String openid);

    public Map<String,Object> getUserInfo(String openId);

    public void createSelfMenu();

    public Map selectSubscribeUser();

    public SysUser selectUserInfo(String openid);

    public void insertUserInfo(GzhUserinfo userinfo);

    public void updateUserInfo(GzhUserinfo userinfo);

}
